home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIWindowlessPlugInstPeer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  128 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWindowlessPlugInstPeer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWindowlessPlugInstPeer_h__
  6. #define __gen_nsIWindowlessPlugInstPeer_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nspluginroot_h__
  14. #include "nspluginroot.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #include "nsplugindefs.h"
  22.  
  23. /* starting interface:    nsIWindowlessPluginInstancePeer */
  24. #define NS_IWINDOWLESSPLUGININSTANCEPEER_IID_STR "57b4e2f0-019b-11d2-815b-006008119d7a"
  25.  
  26. #define NS_IWINDOWLESSPLUGININSTANCEPEER_IID \
  27.   {0x57b4e2f0, 0x019b, 0x11d2, \
  28.     { 0x81, 0x5b, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a }}
  29.  
  30. class NS_NO_VTABLE nsIWindowlessPluginInstancePeer : public nsISupports {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWINDOWLESSPLUGININSTANCEPEER_IID)
  34.  
  35.   /** 
  36.    * Corresponds to NPN_InvalidateRect
  37.    */
  38.   /* void invalidateRect (in nsPluginRectPtr aRect); */
  39.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect) = 0;
  40.  
  41.   /** 
  42.    * Corresponds to NPN_InvalidateRegion
  43.    */
  44.   /* void invalidateRegion (in nsPluginRegion aRegion); */
  45.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion) = 0;
  46.  
  47.   /** 
  48.    * Corresponds to NPN_ForceRedraw
  49.    */
  50.   /* void forceRedraw (); */
  51.   NS_IMETHOD ForceRedraw(void) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIWINDOWLESSPLUGININSTANCEPEER \
  57.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect); \
  58.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion); \
  59.   NS_IMETHOD ForceRedraw(void); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIWINDOWLESSPLUGININSTANCEPEER(_to) \
  63.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect) { return _to InvalidateRect(aRect); } \
  64.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion) { return _to InvalidateRegion(aRegion); } \
  65.   NS_IMETHOD ForceRedraw(void) { return _to ForceRedraw(); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIWINDOWLESSPLUGININSTANCEPEER(_to) \
  69.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRect(aRect); } \
  70.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRegion(aRegion); } \
  71.   NS_IMETHOD ForceRedraw(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceRedraw(); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsWindowlessPluginInstancePeer : public nsIWindowlessPluginInstancePeer
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSIWINDOWLESSPLUGININSTANCEPEER
  82.  
  83.   nsWindowlessPluginInstancePeer();
  84.  
  85. private:
  86.   ~nsWindowlessPluginInstancePeer();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsWindowlessPluginInstancePeer, nsIWindowlessPluginInstancePeer)
  94.  
  95. nsWindowlessPluginInstancePeer::nsWindowlessPluginInstancePeer()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsWindowlessPluginInstancePeer::~nsWindowlessPluginInstancePeer()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* void invalidateRect (in nsPluginRectPtr aRect); */
  106. NS_IMETHODIMP nsWindowlessPluginInstancePeer::InvalidateRect(nsPluginRect * aRect)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* void invalidateRegion (in nsPluginRegion aRegion); */
  112. NS_IMETHODIMP nsWindowlessPluginInstancePeer::InvalidateRegion(nsPluginRegion aRegion)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* void forceRedraw (); */
  118. NS_IMETHODIMP nsWindowlessPluginInstancePeer::ForceRedraw()
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* End of implementation class template. */
  124. #endif
  125.  
  126.  
  127. #endif /* __gen_nsIWindowlessPlugInstPeer_h__ */
  128.